# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=libplacebo
pkgver=2.72.0
pkgrel=0
pkgdesc="Reusable library for GPU-accelerated video/image rendering"
url="https://code.videolan.org/videolan/libplacebo"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	meson
	vulkan-loader-dev
	glslang-static
	glslang-dev
	shaderc-dev
	vulkan-headers
	lcms2-dev
	libepoxy-dev
	py3-mako
	"
subpackages="$pkgname-dev"
source="https://code.videolan.org/videolan/libplacebo/-/archive/v$pkgver/libplacebo-v$pkgver.tar.gz"
builddir="$srcdir/libplacebo-v$pkgver"

build() {
	abuild-meson \
		-Dvulkan=enabled \
		-Dglslang=enabled \
		-Dshaderc=enabled \
		-Dtests=true \
		-Dlcms=enabled \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="829d8805f8a52e082bf7c33f5be8a280480aa3cfbac73966cdf4ddaf0a01f25cc357b98a04fe85c82a53718b5d570a852edeafbb0cb12312c73cb23295fb9bd9  libplacebo-v2.72.0.tar.gz"
